package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.XtqxlsVo;
import com.dhsc.local.dao.xtqxgl.IXtqxlsDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: XtqxlsDaoImpl
 * @Description: 系统权限流水
 * @date: 2023/11/21 9:53
 * @author: gx
 */
@Repository("xtqxlsdao")
public class XtqxlsDaoImpl implements IXtqxlsDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<XtqxlsVo> queryXtqxls(XtqxlsVo xtqxlsVo) {
        return localSqlSessionTemplate.selectList("XtqxlsMapper.queryXtqxls",xtqxlsVo);
    }

    @Override
    public int updateXtqxlsPass(XtqxlsVo xtqxlsVo) {
        return localSqlSessionTemplate.update("XtqxlsMapper.updateXtqxlsPass",xtqxlsVo);
    }

    @Override
    public int updateXtqxlsReturn(XtqxlsVo xtqxlsVo) {
        return localSqlSessionTemplate.update("XtqxlsMapper.updateXtqxlsReturn",xtqxlsVo);
    }

    @Override
    public List<XtqxlsVo> queryXtyh(XtqxlsVo xtqxlsVo) {
        return localSqlSessionTemplate.selectList("XtqxlsMapper.queryXtyh",xtqxlsVo);
    }

    @Override
    public int updateXtyh(XtqxlsVo xtqxlsVo) {
        return  localSqlSessionTemplate.update("XtqxlsMapper.updateXtyh",xtqxlsVo);
    }
}
